﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C8D RID: 3213
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class OAJJGNAECAF : IMessage<OAJJGNAECAF>, IMessage, IEquatable<OAJJGNAECAF>, IDeepCloneable<OAJJGNAECAF>, IBufferMessage
	{
		// Token: 0x17002878 RID: 10360
		// (get) Token: 0x06008FA8 RID: 36776 RVA: 0x0017D971 File Offset: 0x0017BB71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<OAJJGNAECAF> Parser
		{
			get
			{
				return OAJJGNAECAF._parser;
			}
		}

		// Token: 0x17002879 RID: 10361
		// (get) Token: 0x06008FA9 RID: 36777 RVA: 0x0017D978 File Offset: 0x0017BB78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return OAJJGNAECAFReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700287A RID: 10362
		// (get) Token: 0x06008FAA RID: 36778 RVA: 0x0017D98A File Offset: 0x0017BB8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return OAJJGNAECAF.Descriptor;
			}
		}

		// Token: 0x06008FAB RID: 36779 RVA: 0x0017D991 File Offset: 0x0017BB91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OAJJGNAECAF()
		{
		}

		// Token: 0x06008FAC RID: 36780 RVA: 0x0017D999 File Offset: 0x0017BB99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OAJJGNAECAF(OAJJGNAECAF other) : this()
		{
			this.selectMagicUnit_ = ((other.selectMagicUnit_ != null) ? other.selectMagicUnit_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008FAD RID: 36781 RVA: 0x0017D9CE File Offset: 0x0017BBCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OAJJGNAECAF Clone()
		{
			return new OAJJGNAECAF(this);
		}

		// Token: 0x1700287B RID: 10363
		// (get) Token: 0x06008FAE RID: 36782 RVA: 0x0017D9D6 File Offset: 0x0017BBD6
		// (set) Token: 0x06008FAF RID: 36783 RVA: 0x0017D9DE File Offset: 0x0017BBDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameUnitInfo SelectMagicUnit
		{
			get
			{
				return this.selectMagicUnit_;
			}
			set
			{
				this.selectMagicUnit_ = value;
			}
		}

		// Token: 0x06008FB0 RID: 36784 RVA: 0x0017D9E7 File Offset: 0x0017BBE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as OAJJGNAECAF);
		}

		// Token: 0x06008FB1 RID: 36785 RVA: 0x0017D9F5 File Offset: 0x0017BBF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(OAJJGNAECAF other)
		{
			return other != null && (other == this || (object.Equals(this.SelectMagicUnit, other.SelectMagicUnit) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008FB2 RID: 36786 RVA: 0x0017DA28 File Offset: 0x0017BC28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.selectMagicUnit_ != null)
			{
				num ^= this.SelectMagicUnit.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008FB3 RID: 36787 RVA: 0x0017DA64 File Offset: 0x0017BC64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008FB4 RID: 36788 RVA: 0x0017DA6C File Offset: 0x0017BC6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008FB5 RID: 36789 RVA: 0x0017DA75 File Offset: 0x0017BC75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.selectMagicUnit_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.SelectMagicUnit);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008FB6 RID: 36790 RVA: 0x0017DAA8 File Offset: 0x0017BCA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.selectMagicUnit_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.SelectMagicUnit);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008FB7 RID: 36791 RVA: 0x0017DAE8 File Offset: 0x0017BCE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(OAJJGNAECAF other)
		{
			if (other == null)
			{
				return;
			}
			if (other.selectMagicUnit_ != null)
			{
				if (this.selectMagicUnit_ == null)
				{
					this.SelectMagicUnit = new RogueMagicGameUnitInfo();
				}
				this.SelectMagicUnit.MergeFrom(other.SelectMagicUnit);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008FB8 RID: 36792 RVA: 0x0017DB3C File Offset: 0x0017BD3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008FB9 RID: 36793 RVA: 0x0017DB48 File Offset: 0x0017BD48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.selectMagicUnit_ == null)
					{
						this.SelectMagicUnit = new RogueMagicGameUnitInfo();
					}
					input.ReadMessage(this.SelectMagicUnit);
				}
			}
		}

		// Token: 0x040036C9 RID: 14025
		private static readonly MessageParser<OAJJGNAECAF> _parser = new MessageParser<OAJJGNAECAF>(() => new OAJJGNAECAF());

		// Token: 0x040036CA RID: 14026
		private UnknownFieldSet _unknownFields;

		// Token: 0x040036CB RID: 14027
		public const int SelectMagicUnitFieldNumber = 7;

		// Token: 0x040036CC RID: 14028
		private RogueMagicGameUnitInfo selectMagicUnit_;
	}
}
